//
//  Image.swift
//  Employee
//
//  Created by swordjoy on 2017/7/18.
//  Copyright © 2017年 remotevillage. All rights reserved.
//

import Foundation
import SwiftyJSON

struct SJImage {
    
    let accessUrl: String
    let thumbImageURL: String
    
    init(json: JSON) {
        self.accessUrl = json["accessUrl"].stringValue
        self.thumbImageURL = json["thumbImageURL"].stringValue
    }
    
    static func array(from jsonArray: [JSON]) -> [SJImage] {
        return jsonArray.map({ SJImage(json: $0) })
    }
}
